package org.orz.story.works.biz.clubhouse.web.frontend;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.orz.cloud.common.result.ResultDTO;
import org.orz.story.works.biz.clubhouse.model.resp.ListWorksWcScheduleResp;
import org.orz.story.works.biz.clubhouse.service.WorksWcSchedulesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("clubHouse/worldCup")
@Api(tags = "世界杯赛程接口")
public class WcScheduleController {
    @Autowired
    private WorksWcSchedulesService worksWcSchedulesService;

    @PostMapping("listWorksWcSchedule")
    @ApiOperation("查询世界杯日程列表")
    public ResultDTO<List<ListWorksWcScheduleResp>> listWorksWcSchedule(){
        return ResultDTO.success(worksWcSchedulesService.listWorksWcSchedule());
    }

}
